package com.youlemall.mapper;

import com.youlemall.pojo.Brand;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

/**
 * BrandMapper 数据访问接口
 * @date 2019-07-12 21:31:32
 * @version 1.0
 */
public interface BrandMapper extends Mapper<Brand>{


	/**多条件查询品牌*/
	List<Brand> findAll(Brand brand);

	@Select("select id , name as text from tb_brand order by id asc")
	List<Map<String, Object>> findAllByIdAndName();
}